package com.face.server.config;

import org.springframework.amqp.core.Queue;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class RabbitmqConfig {


    /**
     * 开关信号通道
     * @return
     */
    @Bean
    Queue queue1() {
        return new Queue("knob");
    }

    /**
     * 脸部通道
     * @return
     */
    @Bean
    Queue queue2() {
        return new Queue("face");
    }

}
